﻿using Microsoft.AspNetCore.Http;
using QMERP.Domain;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QMERP.Domain.Dtos
{
    public class ContractSaveRequest
    {
        public long? Id { get; set; }
        /// <summary>
        /// 合约编号
        /// </summary>
        //public string Number { get; set; } = "";
        /// <summary>
        /// 合约名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 合约类型
        /// </summary>
        public string Type { get; set; } = "";
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 预付金额
        /// </summary>
        public decimal PrepaidMoney { get; set; }
        /// <summary>
        /// 收款期数
        /// </summary>
        public int Period { get; set; }
        /// <summary>
        /// 合约开始时间
        /// </summary>
        public DateTime BeginOn { get; set; } = DateTime.Now;
        /// <summary>
        /// 合约结束时间
        /// </summary>
        public DateTime EndOn { get; set; } = DateTime.MaxValue;
        public string? Remark { get; set; }

        public List<long> CustomerIds { get; set; }=new List<long>();
        public List<Contract_LensSaveRequest> Contract_Lenses { get; set; } = new List<Contract_LensSaveRequest>();
        public List<Contract_Lens_SalesProcessConstraintSaveRequest>? Contract_Lens_SalesProcessConstraints { get; set; }
    }
}
